<?php
// **************************************************************
//  Copyright 2007 AMC
//  Glenview, Illinois
//
//  File:      member_edit.php
//  Author:    Mickey Freeman (mfreeman@connect2amc.com)
//  Function:  Page for registering a member
//
//  Created: 08/16/07
//  Version: 1.0
//
//  Modified:
// **************************************************************
require_once 'init.php';
$msg           = $_REQUEST[msg];
$obj_page      = new pages();


// pulling the page task
$task             = $_REQUEST['task'];
$obj              = new ws_secure_user();
$obj->load($usr_id);


if (!$usr_id){
    $obj->usr_active = 1;
}
$contentfirst       = $obj_page->curl_data($_REQUEST['first_url']);
$contentsecond      = $obj_page->curl_data($_REQUEST['second_url']);
$f1                 = explode(chr(10),$contentfirst);
$f2                 = explode(chr(10),$contentsecond);

print "<h3>Output Differences :</h3><br>";
$d1    =  $obj_page->arr_diff( $f1, $f2 );
if($d1!='')
{

    $count =  explode('<br>',$d1);

	if($_REQUEST['supress']==1)
	{
	 echo "Count of missmatching lines: ".count($count);

	}
	else
	{
	 print $d1;
	 echo "Count of missmatching lines: ".count($count);
	}
//	   print "<hr>Identlical lines shown:<br>";
//    print $obj_page->arr_diff( $f1, $f2 ,1);
}
else
{
	echo "<br>There is no any output diference";

}




?>